CC=gcc

.PHONY: all clean test

all: knapsack

test: test_tokenization

knapsack: proj.c tokenize.o userinput.o
	$(CC) -o $@ proj.c tokenize.o userinput.o

test_tokenization: test_tokenization.c tokenize.o 
	$(CC) -o $@	test_tokenization.c tokenize.o

tokenize.o: tokenize.c
	$(CC) -c tokenize.c
	
userinput.o: userinput.c
	$(CC) -c userinput.c
	
clean:
	rm *.o test_tokenization knapsack
